a = int(input("输入层数"))
a = a*2
for i in range(1,a,2):
    print(("*"*i).center(a))

for i in reversed(range(1,a,2)):
    print(("*"*i).center(a))